package com.yixun.lbx.mapper.farm;

import com.yixun.lbx.entity.ProDetail;
import com.yixun.lbx.entity.YxProProductInfo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface ProductInfoMapper {
    int deleteByPrimaryKey(HashMap<String, Object> map);

    int insertSelective(HashMap<String, Object> map);

    YxProProductInfo selectByPrimaryKey(Long cpId);

    int updateByPrimaryKeySelective(HashMap<String, Object> map);

    Integer getCount(HashMap<String, Object> map);

    List<YxProProductInfo> getListByPage(HashMap<String, Object> map);

    List<YxProProductInfo> getObjByArgs(YxProProductInfo productInfo);

    List<YxProProductInfo> getSearchListByPage(HashMap<String, String> map);
    
    YxProProductInfo getOneByCpId(@Param("cpId") String cpId);
    
    ProDetail selectProductDetail(@Param("id") String id);
}